<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictGroupList" checkbox="false" fitColumns="true" title="实验室开放资格申请" actionUrl="labOpenQualifyController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  ></t:dgCol>
   <t:dgCol title="状态"  field="state.value"    queryMode="single" hidden="true"  width="60" align="center"></t:dgCol>
   <t:dgCol title="申请实验室名称"  field="lab.name" width="60"  query="true" queryMode="group"   ></t:dgCol>
   <t:dgCol title="考试意见"  field="examContent"  width="120"  queryMode="group" align="center"></t:dgCol>
   <t:dgCol title="提交日期"  field="submitDate" width="40" formatter="yyyy-MM-dd"   queryMode="single"  ></t:dgCol>   
   <t:dgCol title="审核意见"  field="auditContent" width="100" queryMode="group" align="center"></t:dgCol>
   <t:dgCol title="状态"  field="state.name"   width="60" queryMode="group"   align="center"></t:dgCol>
   <t:dgCol title="备注"  field="remark"  width="60" query="false" queryMode="single"  ></t:dgCol>
   <t:dgCol title="操作" field="opt" width="60" ></t:dgCol>
   <t:dgFunOpt title="提交" funname="submitApply(id)" exp="state.value#eq#0,3"></t:dgFunOpt>   
   <t:dgFunOpt  funname="editItemDetail({'编辑'},{'labOpenQualifyController.do?goUpdate'},id,{'500'},{'200'})" title="编辑"  exp="state.value#eq#0,3"/>
   <t:dgDelOpt title="删除" url="labOpenQualifyController.do?doDel&id={id}" exp="state.value#eq#0,3"/>
   <t:dgToolBar title="查看" icon="icon-search" url="labOpenQualifyController.do?goUpdate1" funname="detail" width="500" height="200"></t:dgToolBar>

   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 		//$("#dictGroupListtb").find("input[name='createDate']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
 
 
function submitApply(id){
	var addurl = 'labOpenQualifyController.do?submit&id='+id;
	$.ajax({
		url:addurl,
		success:function(data){
			data = $.parseJSON(data);
			tip(data.msg);
			if(data.success){
				reloadTable();
			}
		}
	});
		  
}
 
 </script>